package com.itheima.bootdemo1.pojo;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

//1.提供get set tostring
@Data
//2.被扫描
@Component
//3.指定标签前缀,自动装配
@ConfigurationProperties(prefix = "enterprise")
public class Enterprise {
    private  String name;
    private  Integer age;
    private  String tel;
    private String[] subject;
}
